package com.windward.vii.config;


import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;

@Configuration
@EnableConfigurationProperties
@ConfigurationProperties(prefix="platform")
@ConditionalOnExpression("${platform.enable:false}")
@Component
public class PlatformConfig {

    private long tokenExpireTime;

    private BigDecimal chatProfitRate;

    private BigDecimal giftProfitRate;

    public long getTokenExpireTime() {
        return tokenExpireTime;
    }

    public void setTokenExpireTime(long tokenExpireTime) {
        this.tokenExpireTime = tokenExpireTime;
    }

    public BigDecimal getChatProfitRate() {
        return chatProfitRate;
    }

    public void setChatProfitRate(BigDecimal chatProfitRate) {
        this.chatProfitRate = chatProfitRate;
    }

    public BigDecimal getGiftProfitRate() {
        return giftProfitRate;
    }

    public void setGiftProfitRate(BigDecimal giftProfitRate) {
        this.giftProfitRate = giftProfitRate;
    }
}
